package Exercise02;

import java.util.ArrayList;

public class ArrycopyTest {
    public static void main(String[] args) {

        int num = 0;
        ArrayList<Integer> list = new ArrayList<Integer>();
         long no = System.nanoTime();
        for (int i = 0; i < 10000; i++) {
            num = i;

            list.add(num);
            System.out.println(num);


        }
        long ffo = System.nanoTime();
        System.out.println(ffo - no+"纳秒");
    }


}
